/**
 * 20220128:created by jordia
 */

/**
 * constants and types
 */
const XRConstants={
    XR_TYPE_VR:101,
    XR_TYPE_AR:102,

    HANDEDNESS_LEFT:'left',
    HANDEDNESS_RIGHT:'right',

    CONTROLLER_STYLE_COMPLEX:'generic-trigger-squeeze-thumbstick',

    TARGET_RAY_MODE_TRACKED_POINTER:'tracked-pointer',
    TARGET_RAY_MODE_GAZE:'gaze',
    TARGET_RAY_MODE_SCREEN:'screen',

    GAMEPAD_BUTTON_GENERIC_A:'gamepadGenericA',
    GAMEPAD_BUTTON_GENERIC_B:'gamepadGenericB',
    GAMEPAD_BUTTON_GENERIC_RIGHT_HOME:'gamepadRightHome',//not exposed(platform button)
    GAMEPAD_BUTTON_GENERIC_RIGHT_OPTION:'gamepadRightOption',//not exposed(platform button)
    GAMEPAD_BUTTON_RIGHT_THUMB_STICK:'gamepadRightThumbStick',
    GAMEPAD_BUTTON_RIGHT_THUMB_STICK_X:'gamepadRightThumbStickX',
    GAMEPAD_BUTTON_RIGHT_THUMB_STICK_Y:'gamepadRightThumbStickY',
    GAMEPAD_BUTTON_RIGHT_SQUEEZE:'gamepadRightSqueeze',
    GAMEPAD_BUTTON_RIGHT_TRIGGER:'gamepadRightTrigger',
    GAMEPAD_BUTTON_GENERIC_X:'gamepadGenericX',
    GAMEPAD_BUTTON_GENERIC_Y:'gamepadGenericY',
    GAMEPAD_BUTTON_GENERIC_LEFT_HOME:'gamepadLeftHome',//not exposed(platform button)
    GAMEPAD_BUTTON_GENERIC_LEFT_OPTION:'gamepadLeftOption',//not exposed(platform button)
    GAMEPAD_BUTTON_LEFT_THUMB_STICK:'gamepadLeftThumbStick',
    GAMEPAD_BUTTON_LEFT_THUMB_STICK_X:'gamepadLeftThumbStickX',
    GAMEPAD_BUTTON_LEFT_THUMB_STICK_Y:'gamepadLeftThumbStickY',
    GAMEPAD_BUTTON_LEFT_SQUEEZE:'gamepadLeftSqueeze',
    GAMEPAD_BUTTON_LEFT_TRIGGER:'gamepadLeftTrigger',

    GESTURE_TYPE_PRESS:'press',//for button
    GESTURE_TYPE_TOUCH:'touch',//for touch pad
    GESTURE_TYPE_PUSH:'push',//for joystick

    CONTROLLER_EVENT_COMMON_SELECT:'select',
    CONTROLLER_EVENT_COMMON_SELECTSTART:'selectstart',
    CONTROLLER_EVENT_COMMON_SELECTEND:'selectend',
    CONTROLLER_EVENT_COMMON_SQUEEZE:'squeeze',
    CONTROLLER_EVENT_COMMON_SQUEEZESTART:'squeezestart',
    CONTROLLER_EVENT_COMMON_SQUEEZEEND:'squeezeend',
    CONTROLLER_EVENT_COMMON_CONNECTED:'connected',
    CONTROLLER_EVENT_COMMON_DISCONNECTED:'disconnected',
    CONTROLLER_EVENT_RAY_MOVE:'move',
    CONTROLLER_EVENT_RAY_MOVECHANGE:'movechange',
    CONTROLLER_EVENT_HAND_PINCHSTART:'pinchstart',
    CONTROLLER_EVENT_HAND_PINCHEND:'pinchend',

    MANAGER_EVENT_SESSIONSTART:'sessionstart',
    MANAGER_EVENT_SESSIONEND:'sessionend',

    SESSION_EVENT_SELECT:'select',
    SESSION_EVENT_SELECTSTART:'selectstart',
    SESSION_EVENT_SELECTEND:'selectend',
    SESSION_EVENT_SQUEEZE:'squeeze',
    SESSION_EVENT_SQUEEZESTART:'squeezestart',
    SESSION_EVENT_SQUEEZEEND:'squeezeend',
    SESSION_EVENT_END:'end',
    SESSION_EVENT_INPUTSOURCESCHANGE:'inputsourceschange',
    SESSION_EVENT_VISIBILITYCHANGE:'visibilitychange',

};

export default XRConstants;